package com.huangwenshuo.futurestarschoolmanagement.mapper;

import com.huangwenshuo.futurestarschoolmanagement.pojo.dto.ReplyDto;
import com.huangwenshuo.futurestarschoolmanagement.pojo.po.Reply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.ReplyVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangwenshuo
 * @since 2021-03-20
 */
@Mapper
public interface ReplyMapper extends BaseMapper<Reply> {

    void addReply(@Param("dto") Reply reply);

    List<Reply> getReplyByPage(@Param("dto") ReplyDto replyDto);

    int getReplyTotal(@Param("dto") ReplyDto replyDto);

    void delRid(Integer rid);
}
